﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 电话日志表
    ///</summary>
    [SugarTable("call_log")]
    public class CallLog
    {
        /// <summary>
        /// 主键ID，自增
        /// </summary>
        [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true)]
        public int id { get; set; }
        /// <summary>
        /// 应答设备，电话号 
        ///</summary>
        [SugarColumn(ColumnName="AnsweringDevice"    )]
         public string AnsweringDevice { get; set; }
        /// <summary>
        /// 呼叫的唯一标识符 
        ///</summary>
         [SugarColumn(ColumnName="CallId"    )]
         public string CallId { get; set; }
        /// <summary>
        /// 当前呼叫的连接状态 
        ///</summary>
         [SugarColumn(ColumnName="ConnectionState"    )]
         public string? ConnectionState { get; set; }
        /// <summary>
        /// 与呼叫相关联的设备 
        ///</summary>
         [SugarColumn(ColumnName="Device"    )]
         public string Device { get; set; }
        /// <summary>
        /// 与呼叫相关的域名
        ///</summary>
         [SugarColumn(ColumnName="Domain"    )]
         public string Domain { get; set; }
        /// <summary>
        /// 与呼叫相关的事件名称 
        ///</summary>
         [SugarColumn(ColumnName="EventName"    )]
         public string EventName { get; set; }
        /// <summary>
        /// 释放呼叫的设备（如果适用） 
        ///</summary>
         [SugarColumn(ColumnName="ReleasingDevice"    )]
         public string ReleasingDevice { get; set; }
        /// <summary>
        /// 呼叫的源设备 
        ///</summary>
         [SugarColumn(ColumnName="SourceDevice"    )]
         public string SourceDevice { get; set; }
        /// <summary>
        /// 呼叫事件发生的时间戳 
        ///</summary>
         [SugarColumn(ColumnName="Timestamp"    )]
         public DateTime Timestamp { get; set; }
        /// <summary>
        /// 呼叫结束时间 
        ///</summary>
         [SugarColumn(ColumnName="EndTimestamp"    )]
         public DateTime? EndTimestamp { get; set; }
        /// <summary>
        /// 病人id 
        ///</summary>
         [SugarColumn(ColumnName="PatientId"    )]
         public string PatientId { get; set; }
        /// <summary>
        /// 拨打电话的类型（1.呼出 2.呼入） 
        ///</summary>
         [SugarColumn(ColumnName="CallType"    )]
         public int? CallType { get; set; }
        /// <summary>
        /// 通话场景（1.随访电话 2.表单电话3.其他） 
        ///</summary>
        [SugarColumn(ColumnName="CallScenario"    )]
         public int? CallScenario { get; set; }
        /// <summary>
        /// 录音地址 
        ///</summary>
         [SugarColumn(ColumnName="CallRecordingUrl"    )]
         public string CallRecordingUrl { get; set; }
        /// <summary>
        /// 拨打状态（例如：1.已接通、2.未接听） 
        ///</summary>
         [SugarColumn(ColumnName="Status"    )]
         public int Status { get; set; }
    }
}
